export default {
  //开启命名空间
  //当前的属性会和模块的名字拼接起来注册全局的store
  //user/username
  namespaced: true,
  state: {
    username: "卢本伟",
    userInfo:{}
  },
  mutations: {
    //怎么在组件中调用这个
    //做持久的存储
    say(state) {
        state.username ="海门盟"
    },
    SET_USERINFO(state,payload){
        state.userInfo = payload;
    }
  },
  actions: {},
  getters: {},
  //modules:{}
};
